home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / lisp / gcl-1.000 / gcl-1 / gcl-1.0 / xbin / distribute < prev    next >
Encoding:
Text File  |  1994-05-10  |  1.1 KB  |  56 lines

  1. #!/bin/sh
  2. GCL=`pwd`
  3. FTPDIR=rascal.ics.utexas.edu:/usr2/ftp/pub/gcl
  4.  
  5.  
  6.  
  7. # done moving aside the .c files we don't want to ship.
  8.  
  9. OPT=-9
  10.  
  11. DNAME="gcl-`cat ${GCL}/majvers`.`cat ${GCL}/minvers`"
  12. NAME="${NAME}.tgz"
  13. if [ $# -eq 1 ] ; then FILE=$1 ;
  14. OPT=
  15. else
  16. FILE=/tmp/${NAME}
  17. rcp ${GCL}/c/ChangeLog ${FTPDIR}/gcl-ChangeLog
  18. rcp ${GCL}/README ${FTPDIR}/GCL.README
  19. fi
  20. cd ${GCL}/..
  21. rm -f ${DNAME}
  22. if ln -s ${GCL} ${DNAME} ; then echo made link ;
  23. else echo cant link ; exit 1 ;
  24. fi
  25. cd ${GCL}
  26. (cd .. ; tar cvf - `${GCL}/xbin/new-files ${GCL} ${DNAME}`)  | gzip -c ${OPT} > ${FILE}
  27. rm -f ../${DNAME}
  28. if  [ $# -eq 0 ] ; then
  29. rcp ${FILE} ${FTPDIR}/${NAME}
  30. fi
  31.  
  32.  
  33. if [ $# -eq 0 ] ; then
  34.    echo wfs > tmpx
  35.    echo binary >> tmpx
  36.    echo send ${FILE} pub/gcl/${NAME} >> tmpx
  37.    echo send README pub/gcl/GCL.README >> tmpx
  38.    echo send c/ChangeLog  pub/gcl/ChangeLog >> tmpx    
  39.    cat tmpx | ftp ftp.cli.com
  40.    rm -f tmpx     
  41.  
  42. echo binary >tmpx
  43. echo cd kcl/akcl >> tmpx
  44. echo prompt >> tmpx
  45. echo 'mdel akcl-1*.Z gcl-1*' >> tmpx
  46. echo send ${FILE} ${NAME} >> tmpx
  47. echo send README GCL.README >> tmpx
  48. echo send c/ChangeLog ChangeLog >> tmpx
  49. echo quit >> tmpx
  50. cat tmpx | ftp 133.11.11.11
  51. fi
  52.  
  53. rm -f tmpx
  54.  
  55.  
  56.